from packages.common.base_model import db, BaseModel


class Config(BaseModel):
    """
    配置模型
    """
    __tablename__ = "sys_config"
    __table_args__ = ({"comment": "配置", "extend_existing": True})
    name = db.Column(db.String, name="name", unique=False, nullable=True, comment="配置名称")
    code = db.Column(db.String, name="code", unique=False, nullable=True, comment="唯一编码")
    groupCode = db.Column(db.String, name="group_code", unique=False, nullable=True, comment="分组编码")
    content = db.Column(db.String, name="content", unique=False, nullable=True, comment="配置内容")
    isSys = db.Column(db.Integer, name="is_sys", unique=False, nullable=True, comment="是否系统")
    enabled = db.Column(db.Integer, name="enabled", unique=False, nullable=True, comment="是否启用")
    remark = db.Column(db.String, name="remark", unique=False, nullable=True, comment="备注")
